<style type="text/css">
.table td{ border-bottom:1px dotted #CCC; padding:5px;}
</style>
<table class="table" cellpadding="5" cellspacing="0" style="border-collapse:separate; width:auto;">
    <tr>
	  <td width="29">id</td>
      <td>标题</td>
      <td>文件名</td>
      <td>上传者</td>
      <td>售价</td>
      <td>上传时间</td>
      <td>状态</td>
      <td>操作</td>
    </tr>
<?php if(!empty($reading)) {
	foreach($reading as $k=>$v) {
		echo '<tr id="tr'.$v['rtid'].'">
      <td>'.$v['rtid'].'</td>
      <td>'.$v['title'].'</td>
      <td>'.$v['file_title'].'</td>
      <td>'.$v['uid'].'</td>
      <td>'.$v['price'].'</td>
      <td>'.$v['add_date'].'</td>
      <td>'.$v['auditing'].'</td>
      <td><a href="#pass" onclick="pass(\'pass\','.$v['rtid'].')">通过</a> <a href="#nopass" onclick="pass(\'nopass\','.$v['rtid'].')">不通过</a></td>
    </tr>';
	}
}else{echo "</table><table><tr><td>暂未有需要审核的内容。</td></tr>";}?>
</table>
<script language="javascript">
function pass(pass, id) {
	$.post("<?php echo $this->config->base_url('manager/auditing?pass=');?>"+pass+'&passid='+id, function(data){
		if(data.result == 'success') {
			showMsg('更新成功');
			$('#tr'+id).css('display','none');
		}
	}, 'json');
}
</script>
<table cellpadding="1" cellspacing="5" style="border-spacing:15px; border-collapse:separate;">
    <tr>
      <td width="29"></td>
      <td width="115">&nbsp;</td>
      <td width="94">&nbsp;</td>
      <td width="27"></td>
      <td width="62"><input onclick="location.href='<?php echo $this->config->base_url('manager/auditing');?>'" class="Btn BtnNml" onmouseover="this.className='Btn BtnHv'" onmouseout="this.className='Btn BtnNml'" type="button" value="载入下页需要审核内容" /></td>
    </tr>
</table>


